<{include file="chong/header.tpl"}>	
<{include file="chong/widget_user_info.tpl"}>
		<div class="center" style="min-height: 420px;">
			<h2 class="user-account-title">
			 <a href="/income_list" <{if $type eq 'income'}>class='active'<{/if}>>我的充值记录</a>
			 <a href="/payment_list" <{if $type eq 'payment'}>class='active'<{/if}>>我的消费记录</a>
		    </h2>
			<table class="user-account-record">
            <{if $type eq 'income'}>
			<tr>
				<th class="recharge-time" width="200">订单号</th>
				<th class="recharge-time" width="180">充值时间</th>
				<th class="recharge-method">充值方式</th>
				<th class="recharge-number">充值金额</th>
				<th class="recharge-state">充值状态</th>
<!--				<th class="recharge-detail">查看</th>-->
			</tr>
			<{foreach from=$list item=income}>
            <tr>
				<td class="recharge-time"><{$income.transid}></td>
				<td class="recharge-time"><{$income.chargetime}></td>
				<td class="recharge-method"><{$paytypes[$income.paytype]}></td>
				<td class="recharge-number">+<{$income.amount}></td>
				<td class="recharge-state">交易<{if $income.status eq 0}>成功<{else}>失败<{/if}></td>
<!--				<td class="recharge-detail"><a href="javascript:;">详情</a></td>-->
			</tr>		
            <{/foreach}>
            <{else}>
            <tr>
				<th class="recharge-time" width="200">订单号</th>
				<th class="recharge-time" width="180">消费时间</th>
				<th class="recharge-method">消费方式</th>
				<th class="recharge-number">消费应用</th>
				<th class="recharge-number">消费数量</th>
				<th class="recharge-state">充值状态</th>
<!--				<th class="recharge-detail">查看</th>-->
			</tr>
			<{foreach from=$list item=income}>
            <tr>
				<td class="recharge-time"><{$income.transid}></td>
				<td class="recharge-time"><{$income.paytime}></td>
				<td class="recharge-method"><{$paytypes[$income.paytype]}></td>
				<td class="recharge-method"><{$income.waresname}></td>
				<td class="recharge-number">-<{$income.amount}></td>
				<td class="recharge-state">交易<{if $income.status eq 0}>成功<{else}>失败<{/if}></td>
<!--				<td class="recharge-detail"><a href="javascript:;">详情</a></td>-->
			</tr>		
            <{/foreach}>
            <{/if}>
		</table>
		</div>
        <div class="tradelistpage">
        <{if $page > 1}>
            <a href="/<{$action}>/<{$page-1}>" class="prepgae">上一页</a>
        <{/if}>
        <{if $totalpage > 1 && $totalpage > $page}>
            <a href="/<{$action}>/<{$page+1}>" class="nextpgae">下一页</a>
        <{/if}>
        </div>
<{include file="chong/footer.tpl"}>	        
